[Xen-API] Fix the rtc/timeoffset entry.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 8 May 2007 09:17:46 +0000 (10:17 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 8 May 2007 09:17:46 +0000 (10:17 +0100)
It cannot be 'None' as this is not parseable by the Java xmlrpc
library.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xend/XendDomainInfo.py

index f1c602a2d73a4f2bb129fbfa3eb381ddb2124d23..5c16baf6e79624e0606c9325c8b827d39ac59796 100644 (file)
@@ -867,7 +867,10 @@ class XendDomainInfo:
 
         # convert two lists into a python dictionary
         vm_details = dict(zip(cfg_vm, vm_details))
-        
+
+        if vm_details['rtc/timeoffset'] == None:
+            vm_details['rtc/timeoffset'] = "0"
+
         for arg, val in vm_details.items():
             if arg in XendConfig.LEGACY_CFG_TO_XENAPI_CFG:
                 xapiarg = XendConfig.LEGACY_CFG_TO_XENAPI_CFG[arg]